package neu.soft.mapper;

import neu.soft.entity.Good;
import neu.soft.query.BasePageQuery;

import java.util.List;

public interface GoodsMapper {

    Integer addGood(Good good);

    Integer selectGood(Good good);

    Integer updateGood(Good good);

    Integer deleteGood(String goodId);

    List<Good> findAll();

    Good findById(String goodId);

    List<Good> findByPage(BasePageQuery baseQuery);//分页查询

    Integer findTypeCode(String goodType);//查询种类code

    String findMeasureCode(String measure);//查询计量单位code

    List<String> findAllGoodType();

    List<String> findAllMeasure();

    List<Good> batchFindGood(List<String> codes);
}
